import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import { ConfigProvider } from 'antd'
import zhCN from 'antd/locale/zh_CN'
import Header from '@/components/Header'
import './globals.css'

const inter = Inter({ subsets: ['latin'] })

export const metadata: Metadata = {
  title: '高端海产品交易平台',
  description: '专业的高端海产品B2B/B2C交易平台，提供完整的产品溯源服务',
  keywords: '海产品,交易平台,溯源,B2B,B2C,高端食材',
}

export default function RootLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <html lang="zh-CN">
      <body className={inter.className}>
        <ConfigProvider locale={zhCN}>
          <div id="root">
            <Header />
            {children}
          </div>
        </ConfigProvider>
      </body>
    </html>
  )
}